<?php
/**
 * 关于商城
 * ds
 * 2020.08.13
 */
namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;

class IpLimit extends Model{

    protected $table = 'ln_ip_limit';
    protected $primaryKey = 'id';
    protected $fillable = [
        'id',      //主键ID
        'user_id',
        'type',
        'region',
        'add_time',
        
    ];

    public $timestamps = false;

    public   function  user_data(){
        return  $this->hasOne('App\Models\MainDB\UserData','user_id','user_id');
    }

}